package Presentation.action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.SwingUtilities;

import Presentationlayout.Admin;

public class AddBookAction implements ActionListener {
	private Admin admin;
	
	public AddBookAction(Admin admin){
		this.admin = admin;
	}
	public void actionPerformed(ActionEvent arg0) {
		Runnable runnableShit = new Runnable(){

			public void run() {
				admin.goToAddBook();		
			}
		};
	
	SwingUtilities.invokeLater(runnableShit);
		
		
	}

}
